Carbon


PBHOpenDFSync

Header: Files.h Carbon status: Supported

Opens the data fork of a file.

OSErr PBHOpenDFSync (
    HParmBlkPtr paramBlock
);
paramBlock

A pointer to a basic HFS parameter block.

function result

A result code.

DISCUSSION

The relevant fields of the parameter block are:

The PBHOpenDFSync function creates an access path to the data fork of a file. PBHOpenDFSync is exactly like the PBHOpenSync function except that PBHOpenDFSync allows you to open a file whose name begins with a period (.).

You can open a path for writing even if it accesses a file on a locked volume, and no error is returned until a PBWriteSync, PBSetEOFSync, or PBAllocateSync call is made.

If you attempt to open a locked file for writing, PBHOpenDFSync returns the result code permErr. If you request exclusive read/write permission but another access path is already open, PBHOpenDFSync returns the reference number of the existing access path in ioRefNum and opWrErr as its function result. You should not use this reference number unless your application originally opened the file.

AVAILABILITY

Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)